package vn.codespot.hms.model.request;

import java.util.HashMap;
import java.util.Map;

public class FeesRequestModel extends AbsRequestModel {
    public static final String VISA_TYPE = "visa_type";

    public static final String PERSON = "person";

    public static final String URGENTLY = "urgently";

    public static final String DATE_ARRIVAL = "date_arrival";

    public static final String COUPON_CODE = "coupon_code";

    public static final String PRIMARY_EMAIL = "primary_email";

    private Map<String, String> mData;

    public FeesRequestModel() {
        mData = new HashMap<String, String>();
    }

    public void setVisaType(String type) {
        mData.put(VISA_TYPE, type);
    }

    public void setPerson(int person) {
        mData.put(PERSON, String.valueOf(person));
    }

    public void setUrgently(Boolean urgently) {
        if (urgently != null && urgently) {
            mData.put(URGENTLY, getUrgentlyAsString(urgently));
        }
    }

    public void setDateArrival(String dateArrival) {
        mData.put(DATE_ARRIVAL, dateArrival);
    }

    public void setCouponCode(String couponCode) {
        mData.put(COUPON_CODE, couponCode);
    }

    public void setPrimaryEmail(String primaryEmail) {
        mData.put(PRIMARY_EMAIL, primaryEmail);
    }

    @Override
    protected Map<String, String> getData() {
        return mData;
    }
}
